package com.ryh.dao;

import com.ryh.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookDao {
    List<Book> getAllBooks();

    Book getBookById(@Param("bookId") String bookId);

    void addBook(Book book);

    void updateBook(Book book);

    void deleteBook(@Param("bookId") String bookId);
}